import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/userinfo_center_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class UserinfoCenterEntity {
	int? id;
	String? user;
	String? rip;
	String? rdate;
	String? udid;
	String? avatar;
	String? nickname;
	int? money;
	@JSONField(name: "give_money")
	int? giveMoney;
	@JSONField(name: "plus_expire")
	int? plusExpire;
	String? mobile;

	UserinfoCenterEntity();

	factory UserinfoCenterEntity.fromJson(Map<String, dynamic> json) => $UserinfoCenterEntityFromJson(json);

	Map<String, dynamic> toJson() => $UserinfoCenterEntityToJson(this);

	UserinfoCenterEntity copyWith({int? id, String? user, String? rip, String? rdate, String? udid, String? avatar, String? nickname, int? money, int? giveMoney, int? plusExpire, String? mobile}) {
		return UserinfoCenterEntity()
			..id= id ?? this.id
			..user= user ?? this.user
			..rip= rip ?? this.rip
			..rdate= rdate ?? this.rdate
			..udid= udid ?? this.udid
			..avatar= avatar ?? this.avatar
			..nickname= nickname ?? this.nickname
			..money= money ?? this.money
			..giveMoney= giveMoney ?? this.giveMoney
			..plusExpire= plusExpire ?? this.plusExpire
			..mobile= mobile ?? this.mobile;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}